<%layout("../layout/_layout_layui.html",{title:'权限组管理'}){ %>
<div class="layui-row" id="content">
	<section>
		<div class="layui-col-md1 layui-col-md-offset10">
			<a href="/system/role/manage/add_edit" id="addbtn" class="layui-btn"> <i class="layui-icon">&#xe608;</i> 添加权限 </a>
		</div>
		<br/><br/>
		<!-- 内容开始 -->
		<div class="">
			<table class="layui-table">
				<thead>
					<tr>
						<th>ID</th>
						<th>名称</th>
						<th>权限组代码</th>
						<th>描述信息</th>
						<th>排序</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					<%for(role in list!){ %>
					<tr>
						<td>${role.id}</td>
						<td>${role.name}</td>
						<td>${role.role_code!}</td>
						<td>${role.des}</td>
						<td>${role.sort}</i>
						</td>
						<td class="action-col ">
							<%if(role.id!=-1){%>
							<span class="action-col layui-btn-group">
            					<a class="layui-btn layui-btn-primary layui-btn-sm" href="/system/role/manage/add_edit/${role.id}"><i class="layui-icon">&#xe642;</i> 编辑</a>
                                <a class="layui-btn layui-btn-primary layui-btn-sm" href="javascript:gx.del('/system/role/manage/delete/${role.id}')"><i class="layui-icon">&#xe640;</i> 删除</a>
                            </span>
							<%}else{%>
							<span>无法编辑</span>
							<%}%>
						</td>
					</tr>
					<%}%>
				</tbody>
			</table>
		</div>
		<!--   内容结束 -->

	</section>
</div>

<%}%>